<html>
<head>
<style type='text/css'>
body {
   background-color: white;
   margin: 1em 2em 1em 2em;
   font-family: Sans-Serif;
   color: #002;
   line-height: 140%;
   font-size: 12px;
}

h1 {
    font-size: 140%;
}

h2 {
    font-size: 130%;
}

h3 {
    font-size: 120%;
}

h4 {
    font-size: 100%;
    font-style: normal;
    font-weight: bold;
}

h5 {
    font-size: 100%;
    font-style: italic;
    font-weight: normal;
}

pre {
   background-color: #eee;
   padding: 0.5em 0.5em 0.5em 2em;
}

@media print {
   pre {word-wrap:break-word; width:100%;}
} 

ul li,
ol li {
   padding-left: 0.3em;
   /*text-indent: -2em;*/
   margin-bottom: 0.5em;
}

em {
   font-style: normal;
   font-weight: bold;
   text-decoration: underline;
   color: #c40;
}

code {
   font-family: Monospace;
   font-size: 100%;
   color: #c40;
}

a, a * {
   text-decoration: underline;
   color: #14a0d1;
   /* border: 0.5px solid #aaa;
   white-space: nowrap;
   padding-right: 0.1em;
   padding-left: 0.1em;
   padding-bottom: -5px; */
}

a code {
   color: #14a0d1;
}

img {
   position: relative;
   bottom: -4px;
}

div.headline {
   font-weight: bold;
   font-size: 110%;
}

div.copyright {
   margin-top: 1em;
   border-top: 1px solid black;
   padding-top: 0.5em;
}

div.iris_headline {
   border-bottom: 1px solid black;
   padding-bottom: 0.3em;
}

.LaTeX {
   font-family: Monospace;
   font-size: 100%;
   border: 1px solid #060;
   color: #060;
}

code.LaTeX {
   background-color: white;
   padding: 0.5em 0.5em 0.5em 2em;
}
</style>
</head>

<body>
<div class="iris_headline">IRIS Toolbox Reference Manual</div>




<h2 id="VAR/sprintf">sprintf</h2>
<div class="headline">Print VAR model as formatted model code</div>

<h4 id="syntax">Syntax</h4>
<pre><code>[C,D] = sprintf(V,...)</code></pre>
<h4 id="input-arguments">Input arguments</h4>
<ul>
<li><p><code>V</code> [ VAR ] - VAR object that will be printed as a formatted model code.</p></li>
<li><p>Output arguments</p></li>
<li><p><code>C</code> [ cellstr ] - Text string with the model code for each parameterisation.</p></li>
<li><p><code>D</code> [ cell ] - Parameter database for each parameterisation; if <code>'hardParameters='</code> is true, the databases will be empty.</p></li>
</ul>
<h4 id="options">Options</h4>
<ul>
<li><p><code>'decimal='</code> [ numeric | <em>empty</em> ] - Precision (number of decimals) at which the coefficients will be written if <code>'hardParameters='</code> is true; if empty, the <code>'format='</code> options is used.</p></li>
<li><p><code>'declare='</code> [ <code>true</code> | <em><code>false</code></em> ] - Add declaration blocks and keywords for VAR variables, shocks, and equations.</p></li>
<li><p><code>'eNames='</code> [ cellstr | char | <em>empty</em> ] - Names that will be given to the VAR residuals; if empty, the names from the VAR object will be used.</p></li>
<li><p><code>'format='</code> [ char | <em>'%+.16g'</em> ] - Numeric format for parameter values; it will be used only if <code>'decimal='</code> is empty.</p></li>
<li><p><code>'hardParameters='</code> [ <em><code>true</code></em> | <code>false</code> ] - Print coefficients as hard numbers; otherwise, create parameter names and return a parameter database.</p></li>
<li><p><code>'yNames='</code> [ cellstr | char | <em>empty</em> ] - Names that will be given to the variables; if empty, the names from the VAR object will be used.</p></li>
<li><p><code>'tolerance='</code> [ numeric | <em>getrealsmall()</em> ] - Treat VAR coefficients smaller than <code>'tolerance='</code> in absolute value as zeros; zero coefficients will be dropped from the model code.</p></li>
</ul>
<h4 id="description">Description</h4>
<h4 id="example">Example</h4>

</body>
<div class="copyright">IRIS Toolbox. Copyright &copy; 2007-2015 IRIS Solutions Team.</div>
</html>
